﻿#ifndef _WND_MAIN_H_
#define _WND_MAIN_H_
//#include "mini_gui.h"

#include "common_inc.h"
#include <minigui/common.h>
#include <minigui/minigui.h>
#include <minigui/gdi.h>
#include <minigui/window.h>
#include <minigui/gdi.h>
//#include "wnd_api.h"
#include "wnd_widget.h"

#ifdef __cplusplus
extern "C" {
#endif  /* __cplusplus */

#define IDC_MOUSE	 		0x1100
#define IDC_MAIN_MENU	 	0x1101


/* 设置界面自定义id*/
#define IDC_DEV_SET_MENU				0x1110			/* 设备管理界面 菜单*/
#define IDC_DEV_SET_QUIT				0x1111			/* 设备管理界面 退出*/
#define IDC_DEV_SET_LIST	 			0x1112			/* 列表*/

#define IDC_WND_MAIN_TIME	 			0x1120			/* 时间显示静态框*/



#define MENU_ICON_NUM		6		/* 控制菜单图标的个数*/

typedef enum wnd_main_icon_menu_index_e {
	MAIN_MENU_INDEX_ONE = 1,
	MAIN_MENU_INDEX_FOUE,
	MAIN_MENU_INDEX_NINE,
	MAIN_MENU_INDEX_VIDEO,
	MAIN_MENU_INDEX_BUSINESS,
	MAIN_MENU_INDEX_DEV_MNG,
}WND_MAIN_ICON_MENU_INDEX_E;

#if 0
typedef struct main_win_first_s {
	HWND u32WndMouse;		/* 鼠标的窗口*/
	BITMAP stBmpMouse;		/* 鼠标图片消息*/
	char s8MousePath[125];	/* 存放鼠标图片的路径*/
	HWND u32WndMenu;		/* 菜单的窗口*/
	bool bDisplayMenu;		/* 是否显示菜单窗口*/
	HWND u32WndTime;		/* 时间显示窗口*/

	WND_API_ICON_MENU_HNADLE_S stIconHandle;
} MAIN_WIN_FIRST_S;











//extern int WND_MAIN_CreateMenu(WND_API_HANDLE_S *pstMainWnd);
extern void *WND_MAIN_CreateWnd(void *pArg);
//extern int WND_MAIN_DestroyMainWnd(WND_API_HANDLE_S *pstMainWnd);

//extern MAIN_WIN_FIRST_S stGlbMainWndFirst;


extern int WND_MAIN_CreateMouse(WND_API_HANDLE_S *pstMainWnd, HWND hWnd);
extern int WND_MAIN_CreateMenu(WND_API_HANDLE_S *pstMainWnd, HWND hWnd);


extern int MINI_MainWindowProc(HWND hWnd, int message, WPARAM wParam, LPARAM lParam);

#endif








WND_WIDGET_S stGlbMainWindow;



//WND_WIDGET_S stGlbMainWndCtrl[];
int s32MainWidgetNum;


//extern int MINI_MainWndProc(HWND hWnd, int message, WPARAM wParam, LPARAM lParam);

#ifdef __cplusplus
}
#endif  /* __cplusplus */



#endif
